home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / DesktopDoubler / Loader / LoaderPrefix.h < prev   
Encoding:
C/C++ Source or Header  |  1999-06-25  |  1.4 KB  |  48 lines  |  [TEXT/CWIE]

  1. #ifndef _LOADERPREFIX_
  2. #define _LOADERPREFIX_
  3.  
  4.  
  5. #if __MC68K__
  6.     #if __option(macsbug)
  7.         #define DEBUG            1
  8.     #else
  9.         #define DEBUG            0
  10.     #endif
  11. #elif __POWERPC__
  12.     #if __option(traceback )
  13.         #define DEBUG            1
  14.     #else
  15.         #define DEBUG            0
  16.     #endif
  17. #endif
  18.  
  19. #define DCON                    DEBUG
  20.  
  21.  
  22. // Project prefix for dprintf calls.  This is optional but should be implemented,
  23. // as it provides the ability to distinguish where the output came from when more
  24. // than one entity is using DCon at the same time.  This must be manually added
  25. // to the beginning of each call: dprintf(kDConPrefix "...
  26. #define kDConPrefix                "Loader: "
  27. #define kDConLogName            "Loader"
  28. #define DCONLOG                    DCON && 0
  29.  
  30.  
  31. // CallTracing uses DCon to print an indented listing of when a function enters
  32. // and exits, thus generating a call trace.  Optionally, it can also be used to
  33. // (very) roughly measure the amount of time spent inside a function and all of
  34. // its sub-functions.  To enable call tracing you must add a single line to the
  35. // top of any functions to be traced: CallTrace trace("function name");
  36. #define CALLTRACE                0
  37. #define CALLTRACE_TIMER            0
  38.  
  39.  
  40. // This overrides DCon functions at boot time and funnels a copy of any output
  41. // destined for DCon straight to a VRAM console.  Later after has DCon has had
  42. // a chance to load it'll turn itself off so as to not be completely annoying.
  43. #define MACPRINTENABLED            1
  44. #define SMALLER_MACPRINT        0
  45.  
  46.  
  47. #endif /* _LOADERPREFIX_ */
  48.